package com.zjhd.sealcutting.dao;

import com.zjhd.sealcutting.domain.Area;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AreaMapper {

    /**
     * TODO 查询省级地区
     * @author wangchao
     * @date 2020/11/20 14:26
     * @param
     * @return
     */
    List<Area> queryProvinceArea();

    /**
     * TODO 根据地区id和层级查询下一级地区
     * @author wangchao
     * @date 2020/11/20 14:34
     * @param
     * @return
     */
    List<Area> queryByParentIdAndLevelArea(@Param("parentId") Integer parentId,@Param("level") Integer level);
}